package com.service;

import com.entity.Goods;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface BaseService <T>{
    //分页
    public PageInfo<T> selectByPage(Map<String, Object> map);

    //查询
    public List<T> select(Map map);

    //新增
    public int insert(T t);

    //修改
    public int update(T t);

    //删除
    public int delete(int id);
}
